Thermal depolymerization